package com.hb.study.design_patterns.proxy;

/**
 * 玩游戏实现类
 *
 * @author Mr.Huang
 * @version v0.1, GamePlayerImpl.java, 2020/5/14 16:26, create by huangbiao.
 */
public class GamePlayerImpl implements IGamePlayer {

    /**
     * 用户名
     */
    private String userName;

    public GamePlayerImpl(String userName) {
        this.userName = userName;
    }

    @Override
    public void login(String password) {
        System.out.println(userName + "登陆成功");
    }

    @Override
    public void killBoss() {
        System.out.println(userName + "在打怪");
    }

    @Override
    public void upgrade() {
        System.out.println(userName + "升级了");
    }

}

    